import Vue from "vue";
import Vuex from "vuex";

const { dataUrl } = require("@/config/env");

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    userImage: sessionStorage.getItem("userImage"),
    userId: sessionStorage.getItem("userId"),
  },
  mutations: {
    setUserImage(state, userImage) {
      state.userImage = dataUrl + userImage;
    },
  },
  actions: {},
  modules: {},
});
